package cn.juque.workflow.converter;

import cn.juque.systemservice.api.dto.employee.EmployeeInfoDetailDTO;
import cn.juque.workflow.bo.businesstask.CandidateUserBO;

/**
 * @author juque
 * @version 1.0.0
 * <ul>
 *     <li>EmployeeInfoConverter</li>
 * </ul>
 * @date 2023-02-04 11:26:53
 **/
public class EmployeeInfoConverter {

    private EmployeeInfoConverter() {
    }

    public static CandidateUserBO toCandidateUserBO(EmployeeInfoDetailDTO dto) {
        CandidateUserBO userBO = new CandidateUserBO();
        userBO.setUserId(dto.getUserId());
        userBO.setUserName(dto.getEmployeeName());
        return userBO;
    }
}
